API Documentation
Static Public Member Functions | List of all members
nkAstraeus::lua::nkExportWrap::JsonExporterWrapper Class Referencefinal

Wraps a nkExport::JsonExporter and offer functions for use in scripting. More...

Static Public Member Functions

static void updateEnvironment (nkScripts::Environment *env)
 
static nkScripts::OutputValue exportTreeIntoString (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue importIntoTree (const nkScripts::DataStack &stack)
 

Detailed Description

Wraps a nkExport::JsonExporter and offer functions for use in scripting.

Member Function Documentation

◆ updateEnvironment()

static void nkAstraeus::lua::nkExportWrap::JsonExporterWrapper::updateEnvironment ( nkScripts::Environment env)
static

Updates a given environment and set it up to use all functions wrapped by this wrapper.

Parameters
envThe environment to set up.

◆ exportTreeIntoString()

static nkScripts::OutputValue nkAstraeus::lua::nkExportWrap::JsonExporterWrapper::exportTreeIntoString ( const nkScripts::DataStack stack)
static

Wrapper function for nkExport::JsonExporter::exportTreeIntoString.

local str = nkExport.JsonExporter.exportTreeIntoString(tree) ;
Parameters
stackThe parameter stack.
Returns
The output value, as a string.

◆ importIntoTree()

static nkScripts::OutputValue nkAstraeus::lua::nkExportWrap::JsonExporterWrapper::importIntoTree ( const nkScripts::DataStack stack)
static

Wrapper function for nkExport::JsonExporter::importIntoTree.

local str = nkExport.JsonExporter.importIntoTree("{'Hey' : 0}") ;
Parameters
stackThe parameter stack.
Returns
The output value, as a string.

The documentation for this class was generated from the following file: